home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 585 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: kj7bg@primenet.com (Bob White)
  3. Newsgroups: comp.std.c++
  4. Subject: Namespaces within class definition???
  5. Date: 28 Feb 1996 18:55:52 GMT
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <4h27pi$ejv@nnrp1.news.primenet.com>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset="US-ASCII"
  13. X-Posted-By: ip184.boi.primenet.com
  14. X-Newsreader: WinVN 0.99.6
  15. X-Lines: 10
  16. Content-Length: 330
  17. Originator: clamage@taumet
  18.  
  19. Assuming that the "string" class is properly defined in namespace "std", is it 
  20. legal to do the following:
  21.  
  22. class xyz : public std::string {
  23. }
  24.  
  25. I am trying to do this with Visual C++ v4.0 and it is giving me an INTERNAL 
  26. COMPILER ERROR.  I thought that this was legal syntax, but am not certain.
  27. Thanks in advance for your help.
  28.  
  29.  
  30.  
  31. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your
  32.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  33.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  34.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  35.   Comments? mailto:std-c++-request@ncar.ucar.edu
  36. ]
  37.